<template>
  <div>
    <photoList :typeArr="Arr" :dataId="dataId" _type="企业详情" />
  </div>
</template>

<script>
import photoList from "../commom/photoList";
export default {
  props: ["dics", "id"],
  components: {
    photoList
  },
  computed: {
    Arr() {
      let result = [];
      if (!this.dics.length) {
        return;
      } else {
        this.dics[0].children.forEach(v => {
          if (v.dicName === "公司资质") {
            result = v.children;
          }
        });
      }
      return result;
    }
  },
  data() {
    return {
      dataId: this.$props.id
    };
  }
};
</script>

<style>
</style>
